package com.ljx.pojo.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author 李加喜
 * @date 2020/9/25 0025 14:29
 * @Email 1129071273@qq.com
 */
//是课程信息与课程描述信息表信息的结合 在课程管理里面的添加课程实现的
@Data
public class CourseInfoVo {
    //对应了课程的基本信息与描述信息
    @ApiModelProperty(value = "课程ID")
    private String id;

    @ApiModelProperty(value = "课程讲师ID")
    private String teacherId;

    @ApiModelProperty(value = "二级分类")
    private String subjectId;

    @ApiModelProperty(value = "1级分类")
    private String subjectParentId;

    @ApiModelProperty(value = "课程标题")
    private String title;

    @ApiModelProperty(value = "课程销售价格，设置为0则可免费观看")
    // 0.01
    private BigDecimal price;  //专门用于定义价格的类型

    @ApiModelProperty(value = "总课时")
    private Integer lessonNum;

    @ApiModelProperty(value = "课程封面图片路径")
    private String cover;

    @ApiModelProperty(value = "课程简介")
    private String description;
}
